package com.sky.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

@Slf4j
@Component
public class MyTask {

    /*
    * 定时任务测试
    * */
    /*@Scheduled(cron = "0/5 * * * * ?")
    public void testTask(){
        log.info("测试:每五秒执行一次任务:{}",new Date());
    }*/
}
